<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<ul>
				<!-- 遍历数组对象 -->
				<li v-for="(iten,xdex) in persons" :key="iten.id">
					{{iten.name}}-{{iten.age}}-{{xdex}}
				</li>
				<!-- 遍历对象 -->
				<li v-for="(item,index) in schools">{{item}}</li>
				<!-- 遍历字符串 -->
				<li v-for="(item,index) in str">{{item}}-{{index}}</li>
			</ul>
		</div>
		<script>
			var xm=new Vue({
				el:"#app",
				data:{
					persons:[
						{id:'001',name:'张三',age:18},
						{id:'002',name:'李三',age:25},
						{id:'003',name:'罗三',age:30}
					],
					
					schools:{
						name01:'北职',
						department:'电信学院',
						classGrade:'安卓1班'
					},
					str:'hello'
				},
			})
		</script>
	</body>
</html>